# daemon=True #是否守护
bind='192.168.56.101:8000'#绑定
pidfile='gunicorn.pid'#pid文件地址
chdir='.' # 项目地址
worker_class='uvicorn.workers.UvicornWorker'
workers=1
threads=2
loglevel='debug' # 日志级别
access_log_format = '%(t)s %(p)s %(h)s "%(r)s" %(s)s %(L)s %(b)s %(f)s" "%(a)s"'
accesslog = "logs/gunicorn_access.log"
errorlog = "logs/gunicorn_error.log"

# 启动命令
# gunicorn main:app -c gunicorn.py

# 关闭命令
# kill -9 `cat gunicorn.pid` 
# pkill -9 gunicorn